Apply compile-time check for AArch64-only cores
authorJohn Tsichritzis <[email protected]>
Mon, 3 Jun 2019 12:54:30 +0000 (13:54 +0100)
committerJohn Tsichritzis <[email protected]>
Tue, 4 Jun 2019 13:08:55 +0000 (14:08 +0100)
commit629d04f53045e5fa104dde4746996e4e974b97e9
treeae1e309e32308d18e78736bbf9b3670b3b97f520
parentc9e40ec59eeebb7e7d5c77ca052c1d1eb8ece511
Apply compile-time check for AArch64-only cores

Some cores support only AArch64 mode. In those cores, only a limited
subset of the AArch32 system registers are implemented. Hence, if TF-A
is supposed to run on AArch64-only cores, it must be compiled with
CTX_INCLUDE_AARCH32_REGS=0.

Currently, the default settings for compiling TF-A are with the AArch32
system registers included. So, if we compile TF-A the default way and
attempt to run it on an AArch64-only core, we only get a runtime panic.

Now a compile-time check has been added to ensure that this flag has the
appropriate value when AArch64-only cores are included in the build.

Change-Id: I298ec550037fafc9347baafb056926d149197d4c
Signed-off-by: John Tsichritzis <[email protected]>
lib/cpus/aarch64/cortex_a76.S
lib/cpus/aarch64/cortex_a76ae.S
lib/cpus/aarch64/cortex_deimos.S
lib/cpus/aarch64/neoverse_e1.S
lib/cpus/aarch64/neoverse_n1.S
lib/cpus/aarch64/neoverse_zeus.S
plat/arm/board/fvp/platform.mk